<script>
function sleep(time){
    // 请写出你的代码
    const p = new Promise((resolve, reject) => {
        setTimeout(() => {
            resolve()
        }, time)
    })
    return p
}

sleep(10000).then(()=>{
    console.log("后续操作")
})
console.log(2);
</script>